-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[discover] Support ES|QL statements without FROM clause #179020
Conversation
if (indexPatternFromQuery === '') { | ||
return new DataView({ fieldFormats: services.fieldFormats }); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good from my end, it's great, that we are now be able to do this, and no longer persist a "foreign" data view in this case. question is, if this could be further optimized, we're saving redundant settings here
neither title, nor sourceFilters, nor fieldFormats, nor runtimeFieldMap, ...
would be necessary to be persisted as serialized values, since those are just defaults. just persisting what's necessary, would also make it easier to debug, and save a bit of space (not much, but well, a tiny little bit)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created this as to address it as a separate issue - #180429
/ci |
1 similar comment
/ci |
/ci |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @mattkime |
I guess this can be closed? |
Summary
Supply an empty data view when there's no FROM clause and therefore no field list.
Closes #163417